<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Shipping Address</title>
  <script type="text/javascript" th:src="@{/js/Order.js}"></script>
</head>
<body>
<div id="Catalog">
  <form th:action="@{/newOrder(shipAddressSubmitted=true)}" method="post">
    <table>
      <tr>
        <th colspan="2">Shipping Address</th>
      </tr>
      <tr>
        <td>First name:</td>
        <td>
          <input type="text" name="order.shipToFirstName"
                 th:value="${session.loginAccount?.firstname}"/>
        </td>
      </tr>
      <tr>
        <td>Last name:</td>
        <td>
          <input type="text" name="order.shipToLastName"
                 th:value="${session.loginAccount?.lastname}"/>
        </td>
      </tr>
      <tr>
        <td>Address 1:</td>
        <td>
          <input type="text" name="order.shipAddress1" size="40"
                 th:value="${session.loginAccount?.addr1}"/>
        </td>
      </tr>
      <tr>
        <td>Address 2:</td>
        <td>
          <input type="text" name="order.shipAddress2" size="40"
                 th:value="${session.loginAccount?.addr2}"/>
        </td>
      </tr>
      <tr>
        <td>City:</td>
        <td>
          <input type="text" name="order.shipCity"
                 th:value="${session.loginAccount?.city}"/>
        </td>
      </tr>
      <tr>
        <td>State:</td>
        <td>
          <input type="text" name="order.shipState" size="4"
                 th:value="${session.loginAccount?.state}"/>
        </td>
      </tr>
      <tr>
        <td>Zip:</td>
        <td>
          <input type="text" name="order.shipZip" size="10"
                 th:value="${session.loginAccount?.zip}"/>
        </td>
      </tr>
      <tr>
        <td>Country:</td>
        <td>
          <input type="text" name="order.shipCountry" size="15"
                 th:value="${session.loginAccount?.country}"/>
        </td>
      </tr>
    </table>
    <br/>
    <input type="button" name="newOrder" value="Continue" onclick="jump2confirmorder();" />
  </form>
</div>
</body>
</html>